package com.athu.study.service;

import dev.langchain4j.agent.tool.P;
import dev.langchain4j.agent.tool.Tool;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class InvoiceHandler {
    @Tool("根据用户提交的开票信息，开具发票")
    public String handle(@P("公司名称")String companyName,
                         @P("税号序列")String dutyNumber,
                         @P("开票金额，保留两位有效数字")String amount){
        log.info("companyName =>>>> {} dutyNumber =>>>> {} amount =>>>> {}", companyName, dutyNumber, amount);
        return "开票成功";
    }
}
